package simple_factory

import "fmt"

type tMijiaLight struct {
	LightInfo
}


func newMijiaLight(info *LightInfo) *tMijiaLight {
	return &tMijiaLight{
		*info,
	}
}

func (me *tMijiaLight) Open() error {
	fmt.Printf("tMijiaLight.Open, %v\n", &me.LightInfo)
	return nil
}

func (me *tMijiaLight) Close() error {
	fmt.Printf("tMijiaLight.Close, %v\n", &me.LightInfo)
	return nil
}